//
//  MYKURLManager.h
//  ZFGT
//
//  Created by apple on 2017/12/19.
//  Copyright © 2017年 allyoubank.com. All rights reserved.
//

#import <Foundation/Foundation.h>


#pragma mark - URL

#define Rd_Loan_Mine             @"api/act/user/info.htm"

//验证手机号码是否已存在
#define Rd_Loan_IsPhoneExists    @"api/user/isPhoneExists.htm"
//登录
#define Rd_Loan_Login            @"api/user/login.htm"
//刷新token
#define Rd_Loan_RefreshToken     @"api/user/autoLogin.htm"
//是否可获取短信验证码
#define Rd_Loan_FindTimeMsg      @"api/user/findTimeMsg.htm"
//获取短信验证码
#define Rd_Loan_FetchSmsVCode    @"api/user/sendSms.htm"
//验证短信验证码
#define Rd_Loan_ValidateSmsCode  @"api/user/verifySms.htm"
//注册
#define Rd_Loan_Register         @"api/user/register.htm"
//忘记登录密码
#define Rd_Loan_ForgetPwd        @"api/user/login/forgetPwd.htm"
//忘记交易密码(验证用户身份信息，为第一步)
#define Rd_Loan_ForgetPayPwd     @"api/act/user/validateUser.htm"
//修改登录密码
#define Rd_Loan_ChangePwd        @"api/act/user/changeLoginPwd.htm"
//修改交易密码
#define Rd_Loan_ChangePayPwd     @"api/act/user/changeTradePwd.htm"
//修改交易密码-校验原密码
#define Rd_Loan_CheckOldPwd      @"api/act/user/validateTradePwd.htm"
//设置交易密码
#define Rd_Loan_SetPayPwd        @"api/act/user/setTradePwd.htm"
//重置交易密码
#define Rd_Loan_ResetPayPwd      @"api/act/user/resetTradePwd.htm"

//自动还款详情
#define Rd_Loan_AutomaticPayment      @"api/act/borrow/repay/info.htm"

//主动还款
#define Rd_Loan_InitiativePayment      @"api/act/borrow/repay/auto.htm"
//还款提示
#define Rd_Loan_InitiativePrompting      @"api/borrow/repay/borrowRepayCount.htm"

//手机运营商认证状态
#define Rd_Loan_Carriers  @"api/user/updateOperatorAuth.htm"
//----------------------------------------Liveness-----------------------------//

//绑定芝麻信用
#define RD_Loan_BindZMCredit      @"api/act/mine/zhima/authorize.htm"
//查询是否引流
#define RD_Loan_NeedDivert        @"api/act/needDivert.htm"



typedef NS_ENUM(NSUInteger, MYKURLManagerType) {
    common,
    html5,
};

// MARK: - 所有的URL和Param的组装都在MYKURLManager的分类中管理


@interface MYKURLModel : NSObject

// 请求体参数
@property (nonatomic, copy, nullable) NSDictionary *param;
// 请求URL
@property (nonatomic, copy) NSString *url;

@end

@interface MYKURLManager : NSObject


/**
 *  根据 OmiBaseUrlType 枚举类型 获取对应的BaseUrl
 *  @params type OmiBaseUrlType类型
 *
 *  @return 返回一个BaseUrl
 */
+ (NSString *)baseUrl:(MYKURLManagerType)type;

@end
